<!--#include file="../../Config/SQL_conn.asp" -->
<% if  Session("HUserId")="" or Session("HuserFtp")="" or Session("HuserType")<>"MYSQL" or Session("HuserSID")<>Session.SessionID then
Session("HUserId")="" 
Session("HuserFtp")=""
Session("HuserType")=""
Session("HuserSID")=""
response.write "<script>this.top.location.href = ""../index.asp"";</script>"
else
rs.open "Select MYSQL_Password from Mysql_Busines where ID='"&Session("HUserId")&"'",conn,1,1
if rs.bof and rs.eof then
Session("HUserId")="" 
Session("HuserFtp")=""
Session("HuserPassword")=""
Session("HuserType")=""
Session("HuserSID")=""
response.write "<script>this.top.location.href = ""../index.asp"";</script>"
else
if rs("MYSQL_Password")<>Session("HuserPassword") then
Session("HUserId")="" 
Session("HuserFtp")=""
Session("HuserPassword")=""
Session("HuserType")=""
Session("HuserSID")=""
response.write "<script>this.top.location.href = ""../index.asp"";</script>"
end if
end if
rs.close
end if
%>